]> dgit.raspbian.org Git - gnome-shell.git/commit
slider: Calculate handle position in whole pixel units
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Thu, 20 Feb 2020 08:02:20 +0000 (16:02 +0800)
committerDaniel van Vugt <daniel.van.vugt@canonical.com>
Fri, 21 Feb 2020 03:29:09 +0000 (11:29 +0800)
commit38da479ee8378c17947cbad802aef8f169364590
treead1bad20d5e9dea3f81757f4dc050d8935222df8
parent574ab04e9f2c36625cffae29a9744cd6f1a2f455
slider: Calculate handle position in whole pixel units

`-slider-handle-radius` is a floating point value and even in the default
theme it's not a whole number. Regardless of the fractional part that's
still going to occupy a whole extra pixel with antialiasing. So make room
for it. Otherwise it looks clipped, which it is by the Cairo context of
its `StDrawingArea`.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1569
js/ui/slider.js